package com.redis.Service;

import com.redis.vo.ShopEntity;
import com.redis.vo.SpikeEntity;

public interface ShopBiz {
    //查询商品库存
    ShopEntity shopNum(int shopId);
    //修改商品的库存
    int updateNumber(int shopId);
    //插入秒杀信息到spike表
    int insertSpike(int shopId, int userId, String userName);
    //通过shopId查询商品名
    String queryShopName(int shopId);
    //通过商品名查询
    ShopEntity seek(String shopName);
}
